define(function(require,exports,module){
	'use strict';

	var React = require('react');
	
	module.exports = React.createClass({displayName: "exports",
		
		render:function(){
			var date_data = [];
			if(this.props.data){
				for(var i=0;i<this.props.data.length;i++){
					date_data.push({'value':this.props.data[i].date,'name':this.props.data[i].date});
				}
			}
		
			//日期列表
			var date_option = date_data.map(function(option){
				return (
					React.createElement("option", {ref: option.value, value: option.value}, option.name)
				);
			});
			return (
				React.createElement("form", {className: "dateForm", style: {margin:'5px 0'}}, 
					React.createElement("select", {className: "form-control input", onChange: this.props.handleDateChange}, 
					React.createElement("option", {value: ""}, "请选择日期"), 
					date_option
					)
				)
			);
		}
		
	});
});